{% extends 'base.html' %}

{% block title %} Login {% endblock title %}

{% block content %}
<div id="wrapper">

    {% for error in form.non_field_errors %}
        <span class="mb-5" style="margin-bottom: 5px;">{{ error }}</span>
    {% endfor %}

    <form id="signin" autocomplete="off" action="{% url 'login' %}" method="POST">
        {% csrf_token %}
        {% for field in form %}
            {% if field.errors %}
                <p >{{ field.errors }}</p>
            {% endif %}
            {{ field }}
        {% endfor %}
        <input type="hidden" name="next" value="{{ next }}" />
        <button type="submit">></button>
	</form>

</div>
{% endblock content %}
